using UnityEngine;
using System.Collections;

public class MainScene : MonoBehaviour, CustomScene
{
    #region Fields

    private ArrayList sprites = new ArrayList();
	public MUIManager uimgr;

    #endregion

    #region Methods
	
	void Start()
	{
		uimgr.scene = this;
        Camera.main.orthographicSize = 320 / 2;
        Vector3 temp = Camera.main.transform.position;
        Camera.main.transform.position = new Vector3(temp.x, temp.y, -320 / 2);
	}

    void Update()
    {
    }

    public virtual void OnUIEvent(int number, object obj)
    {
        switch (number)
        {
            case 1:     //  abil
                break;
            case 2:     //  achi
                Application.LoadLevel("PlayScene");
                break;
            case 3:     //  item
                break;
            case 4:     //  option
                break;
            case 5:     //  play
                break;
            case 6:     //  qulity
                break;
            case 7:     //  rank
                break;
            case 8:     //  shop
                break;
            case 9:     //  skill
                break;
        }
    }

    //private void AddSMBG(Vector3 position)
    //{
    //    GameObject tempGO = (GameObject)Instantiate(pfBG, position, Quaternion.identity);
    //    sprites.Add(bgMgr.AddSprite(tempGO, 480, 320, new Vector2(0, 0), new Vector2(1, 1), false));
    //}

    //private void AddBtn(Vector3 position)
    //{
    //    GameObject tempGO = (GameObject)Instantiate(pfBG, position, Quaternion.identity);
    //    sprites.Add(btnItem.AddSprite(tempGO, 68, 23, new Vector2(0, 0), new Vector2(1, 1), false));
    //}

    #endregion
}
